From c3d071492e184665a979d5686691d57e05f9aa67 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Fri, 31 Jul 2026 01:04:11 +0000 Subject: [PATCH] Use better macro name: sdb_manual_swelling -> sdb_manual_source --- db/schemas/sokwedb/tables/create/swelling_sources.m4 | 8 ++++---- doc/src/analyzed/swelling_states.m4 | 2 +- doc/src/code_tables.m4 | 2 +- doc/src/tables/swelling_sources.m4 | 4 ++-- include/global_constants.m4 | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/db/schemas/sokwedb/tables/create/swelling_sources.m4 b/db/schemas/sokwedb/tables/create/swelling_sources.m4 index 365df7a..dd157d3 100644 --- a/db/schemas/sokwedb/tables/create/swelling_sources.m4 +++ b/db/schemas/sokwedb/tables/create/swelling_sources.m4 @@ -34,15 +34,15 @@ CREATE TABLE swelling_sources ( ,swellingmin TEXT REFERENCES cycle_states CONSTRAINT - "SwellingMin may be NULL only when Source = sdb_manual_swelling" + "SwellingMin may be NULL only when Source = sdb_manual_source" CHECK(swellingmin IS NOT NULL - OR source = 'sdb_manual_swelling') + OR source = 'sdb_manual_source') ,swellingmax TEXT REFERENCES cycle_states CONSTRAINT - "SwellingMax may be NULL only when Source = sdb_manual_swelling" + "SwellingMax may be NULL only when Source = sdb_manual_source" CHECK(swellingmax IS NOT NULL - OR source = 'sdb_manual_swelling') + OR source = 'sdb_manual_source') ,notes TEXT NOT NULL notonlyspaces_check(`Notes') -- Table constraints diff --git a/doc/src/analyzed/swelling_states.m4 b/doc/src/analyzed/swelling_states.m4 index a1a4214..7b79f2a 100644 --- a/doc/src/analyzed/swelling_states.m4 +++ b/doc/src/analyzed/swelling_states.m4 @@ -84,7 +84,7 @@ associated with non-|null| |CYCLE_STATES.AsNum| values appear as There is a mechanism for ignoring the above minimum and maximum calculations and manually specifying a daily sexual swelling value. To do this, create a row in |SWELLING_SOURCES| with the special -|SWELLING_SOURCES.Source| value of ``sdb_manual_swelling``. +|SWELLING_SOURCES.Source| value of ``sdb_manual_source``. The |SWELLING_SOURCES.SwellingMin| and SWELLING_SOURCES.SwellingMax| values in the row you create then become the values used in the SWELLING_STATES.\ |SWELLING_STATES.SwellingMin| and |SWELLING_STATES.SwellingMax| columns for diff --git a/doc/src/code_tables.m4 b/doc/src/code_tables.m4 index cf05a4a..639191b 100644 --- a/doc/src/code_tables.m4 +++ b/doc/src/code_tables.m4 @@ -1279,7 +1279,7 @@ The following |SIGHTING_RECORDS.Code| values are special: due to data held in SokweDB (aside from the |NON_BREC_SIGHTING_SOURCES| and |SWELLING_SOURCES| tables). -``sdb_manual_swelling`` +``sdb_manual_source`` Indicates that the sexual swelling values given in the |SWELLING_SOURCES| table are to be used in instead of any other value. diff --git a/doc/src/tables/swelling_sources.m4 b/doc/src/tables/swelling_sources.m4 index 7ff9933..dcac974 100644 --- a/doc/src/tables/swelling_sources.m4 +++ b/doc/src/tables/swelling_sources.m4 @@ -129,7 +129,7 @@ SwellingMin (MINimum sexual SWELLING) |SWELLING_SOURCES.SwellingMin_summary| This value may only be |null| when the |SWELLING_SOURCES.Source| value -is ``sdb_manual_swelling``. +is ``sdb_manual_source``. .. _SWELLING_SOURCES.SwellingMax: @@ -145,7 +145,7 @@ SwellingMax (MAXimum sexual SWELLING) |SWELLING_SOURCES.SwellingMax_summary| This value may only be |null| when the |SWELLING_SOURCES.Source| value -is ``sdb_manual_swelling``. +is ``sdb_manual_source``. .. _SWELLING_SOURCES.Notes: diff --git a/include/global_constants.m4 b/include/global_constants.m4 index 2126012..2a72b29 100644 --- a/include/global_constants.m4 +++ b/include/global_constants.m4 @@ -185,7 +185,7 @@ dnl dnl Value used when the SokweDB tables indicate a sighting define(`sdb_sokwedb_source', `SOKWEDB') dnl Value used to manually override all other sexual swelling values -define(`sdb_manual_swelling', `MANUAL') +define(`sdb_manual_source', `MANUAL') dnl dnl Special sexual cycle values -- 2.34.1